package com.sk.component;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.Handler;
import android.os.IBinder;
import android.os.Messenger;
import android.util.Log;
import android.widget.Toast;

public class Service2 extends Service{
	
	boolean is = true;
	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		
	}
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.v("time", new SimpleDateFormat("yyyyMMdd-HH:mm:ss").format(Calendar.getInstance().getTime()));		
		return START_STICKY;
	}
	

}
